package util;
//id服务
public class IdService {
	private static int nextId=1000;
	//每次调用返回当前id+1
	public synchronized static int getId(){
		return nextId++;
	}		
}
